package com.qingzhuge.pageview.admin.controller;

import com.qingzhuge.common.annotation.ASysLog;
import com.qingzhuge.common.enums.EResourceType;
import com.qingzhuge.controller.BasePkLongController;
import com.qingzhuge.core.annotation.AResource;
import com.qingzhuge.dto.response.ResponseBodyDto;
import com.qingzhuge.pageview.dto.request.SysPageViewRequestDto;
import com.qingzhuge.pageview.dto.response.SysPageViewResponseDto;
import com.qingzhuge.pageview.entity.SysPageView;
import com.qingzhuge.pageview.service.ISysPageViewService;
import com.qingzhuge.utils.PageUtil;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zero.xiao
 * @description :
 * @date : 2019/1/17 0017 下午 15:19
 * @modified :
 * @since :
 */
@ASysLog(value = "浏量统计")
@AResource(name = "浏量统计",type = EResourceType.menu, catalog = "统计管理")
@Api(tags = "S浏览量统计")
@RestController
@RequestMapping("api/sys/vp")
public class SysPageViewController extends BasePkLongController<SysPageView, ISysPageViewService,SysPageViewRequestDto, SysPageViewResponseDto> {
    @Override
    public ResponseEntity<ResponseBodyDto<PageUtil<SysPageViewResponseDto>>> queryPage(@RequestBody SysPageViewRequestDto entity) {
        return super.queryPage(entity);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysPageViewResponseDto>> get(@PathVariable Long id) {
        return super.get(id);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysPageViewResponseDto>> save(@RequestBody SysPageViewRequestDto requestDto) {
        return super.save(requestDto);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysPageViewResponseDto>> update(@RequestBody SysPageViewRequestDto requestDto) {
        return super.update(requestDto);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<Object>> delete(@PathVariable Long id) {
        return super.delete(id);
    }
}
